-------------------------------------------------------------------------------
Matti Liski and Iivo Vehviläinen

"Gone with the wind?
An empirical analysis of the renewable energy rent transfer"
Journal of the Association of Environmental and Resource Economists

Data Set instructions

Last update: 2020-04-02 / Iivo Vehvilainen, iivo.vehvilainen@aalto.fi

All codes are made available through Modified BSD License. 

https://opensource.org/licenses/BSD-3-Clause

All data generated by us is made available through Creative Commons Attribution International 4.0 (CC-BY).

http://creativecommons.org/licenses/by/4.0/

-------------------------------------------------------------------------------

-------------------------------------------------------------------------------
QUICK START
-------------------------------------------------------------------------------

Copy the code "LV_wind.R" and the accompanying data file "LV_wind.RData" to a local directory. Open file "LV_wind.R" with R, change the DATA.FOLDER in the code to point to your local directory, install libraries if missing, and run the script to reproduce the tables and figures in the paper.


-------------------------------------------------------------------------------
GENERAL INSTRUCTIONS
-------------------------------------------------------------------------------

All code is in R and has been run with R 3.6.1 on MacOS 10.14.6 with a Mac Pro with a 12 core processor and 64 GBs of memory.


-------------------------------------------------------------------------------
DATA
-------------------------------------------------------------------------------

All data is stored in file "LV_wind.RData". The file contains three data tables:

1. dt.fit

The main data that contains all the variables used in the analysis. The code provides further details on the content of the data table and Appendix A provides the data sources and descriptions of the data. 

2. dt.eea

Annual emissions data used in the Appendix to produce Figure C.2.


3. dt.supply.yr

Annual level generation data that is used to produce country level descriptives in Table 1.


-------------------------------------------------------------------------------
CODE
-------------------------------------------------------------------------------

The file "LV_wind.R" is self-contained and includes further step-wise instructions on the calculations.

Additional Excel-file "LV_pollutants.xlsx" provides the data used for the calculation of social cost of carbon and health cost parameters from the sources.

